<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>汇款登记</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/static/plupload/upfiless.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/Theme1/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">

    <script type="text/javascript">
        function DateSelector(selYear, selMonth, selDay) {
            this.selYear = selYear;
            this.selMonth = selMonth;
            this.selDay = selDay;
            this.selYear.Group = this;
            this.selMonth.Group = this;
            // 给年份、月份下拉菜单添加处理onchange事件的函数
            if (window.document.all != null) // IE
            {
                this.selYear.attachEvent("onchange", DateSelector.Onchange);
                this.selMonth.attachEvent("onchange", DateSelector.Onchange);
            }
            else // Firefox
            {
                this.selYear.addEventListener("change", DateSelector.Onchange, false);
                this.selMonth.addEventListener("change", DateSelector.Onchange, false);
            }
            if (arguments.length == 4) // 如果传入参数个数为4，最后一个参数必须为Date对象
                this.InitSelector(arguments[3].getFullYear(), arguments[3].getMonth() + 1, arguments[3].getDate());
            else if (arguments.length == 6) // 如果传入参数个数为6，最后三个参数必须为初始的年月日数值
                this.InitSelector(arguments[3], arguments[4], arguments[5]);
            else // 默认使用当前日期
            {
                var dt = new Date();
                this.InitSelector(dt.getFullYear(), dt.getMonth() + 1, dt.getDate());
            }
        }
        // 增加一个最大年份的属性
        DateSelector.prototype.MinYear = 1900;
        // 增加一个最大年份的属性
        DateSelector.prototype.MaxYear = (new Date()).getFullYear();
        // 初始化年份
        DateSelector.prototype.InitYearSelect = function () {
            // 循环添加OPION元素到年份select对象中
            for (var i = this.MaxYear; i >= this.MinYear; i--) {
                // 新建一个OPTION对象
                var op = window.document.createElement("OPTION");
                // 设置OPTION对象的值
                op.value = i;
                // 设置OPTION对象的内容
                op.innerHTML = i;
                // 添加到年份select对象
                this.selYear.appendChild(op);
            }
        }
        // 初始化月份
        DateSelector.prototype.InitMonthSelect = function () {
            // 循环添加OPION元素到月份select对象中
            for (var i = 1; i < 13; i++) {
                // 新建一个OPTION对象
                var op = window.document.createElement("OPTION");
                // 设置OPTION对象的值
                op.value = i;
                // 设置OPTION对象的内容
                op.innerHTML = i;
                // 添加到月份select对象
                this.selMonth.appendChild(op);
            }
        }
        // 根据年份与月份获取当月的天数
        DateSelector.DaysInMonth = function (year, month) {
            var date = new Date(year, month, 0);
            return date.getDate();
        }
        // 初始化天数
        DateSelector.prototype.InitDaySelect = function () {
            // 使用parseInt函数获取当前的年份和月份
            var year = parseInt(this.selYear.value);
            var month = parseInt(this.selMonth.value);
            // 获取当月的天数
            var daysInMonth = DateSelector.DaysInMonth(year, month);
            // 清空原有的选项
            this.selDay.options.length = 0;
            // 循环添加OPION元素到天数select对象中
            for (var i = 1; i <= daysInMonth; i++) {
                // 新建一个OPTION对象
                var op = window.document.createElement("OPTION");
                // 设置OPTION对象的值
                op.value = i;
                // 设置OPTION对象的内容
                op.innerHTML = i;
                // 添加到天数select对象
                this.selDay.appendChild(op);
            }
        }
        // 处理年份和月份onchange事件的方法，它获取事件来源对象（即selYear或selMonth）
        // 并调用它的Group对象（即DateSelector实例，请见构造函数）提供的InitDaySelect方法重新初始化天数
        // 参数e为event对象
        DateSelector.Onchange = function (e) {
            var selector = window.document.all != null ? e.srcElement : e.target;
            selector.Group.InitDaySelect();
        }
        // 根据参数初始化下拉菜单选项
        DateSelector.prototype.InitSelector = function (year, month, day) {
            // 由于外部是可以调用这个方法，因此我们在这里也要将selYear和selMonth的选项清空掉
            // 另外因为InitDaySelect方法已经有清空天数下拉菜单，因此这里就不用重复工作了
            this.selYear.options.length = 0;
            this.selMonth.options.length = 0;
            // 初始化年、月
            this.InitYearSelect();
            this.InitMonthSelect();
            // 设置年、月初始值
            this.selYear.selectedIndex = this.MaxYear - year;
            this.selMonth.selectedIndex = month - 1;
            // 初始化天数
            this.InitDaySelect();
            // 设置天数初始值
            this.selDay.selectedIndex = day - 1;
        }
    </script>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>汇款登记 </h5>
                        <div class="ibox-tools"></div>    
                    </div>

                    <div class="ibox-title">
                        <form action="" method="get"> 
                            <label>请选择汇款内容</label> 
                            <select name="jumpMenu" id="jumpMenu"  onchange="MM_jumpMenu('parent',this,0)" style="width: 200px">
                                <?php if($info['states']==1){ ?> <option value="1">我要升级</option><?php } ?>
                                <?php if($info['states']==0){ ?> <option value="2">我要激活</option> <?php } ?>
                            </select> 
                        </form> 
                     <!--    <script type="text/javascript"> 
                           
                            function MM_jumpMenu(targ,selObj,restore){ 
                            eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
                            if (restore) selObj.selectedIndex=0; 
                            } 
                           
                        </script>  -->

                    </div>
                    <div class="ibox-content">
                        <form method="post" action="__URL__/Remit" onsubmit="return validation()" class="form-horizontal" id="form-admin-add" enctype="multipart/form-data">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">会员编号</label>
                                <div class="col-sm-3">                
                                  <input type="text" class="form-control"  name="loginname" value="<{$Think.session.nvip_nvip_member_User}>" readonly />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">当前等级</label>
                                <div class="col-sm-3">                
                                  <input type="text" class="form-control" value="<?php  echo GetLevel($info['standardlevel']) ?>会员" readonly />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">升级等级</label>
                                <div class="col-sm-3">                
                                  <input type="text" class="form-control"  value="<?php  echo GetLevel($info['standardlevel']+1) ?>会员" readonly />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">登记费用</label>
                                <div class="col-sm-3">                
                                  <input type="text" class="form-control"  value="<{$sys}>" readonly />
                                </div>
                            </div>



                            <div class="form-group">
                                <label class="col-sm-1 control-label">汇款时间</label>
                                <div class="col-sm-3">                
                                  <tr>
                                     
                                      <td>
                                          <select id="selYear" name="nian"></select>年
                                          <select id="selMonth" name="yue"></select>月
                                          <select id="selDay" name="ri"></select>日
                                          <select id="shi" name="shi">
                                              <?php
                                                            for($i=1;$i<=24;$i++){
                                                        ?>

                                              <option value ="<?php echo $i ?>"><?php echo $i ?></option>
                                              <?Php

                                                            }
                                                         ?>
                                          </select>时
                                          <select id="fen" name="fen">

                                              <?php
                                                            for($i=1;$i<=60;$i++){
                                                        ?>

                                              <option value ="<?php echo $i ?>"><?php echo $i ?></option>
                                              <?Php

                                                            }
                                                         ?>

                                          </select>分


                                          <script type="text/javascript">
                                              var selYear = window.document.getElementById("selYear");
                                              var selMonth = window.document.getElementById("selMonth");
                                              var selDay = window.document.getElementById("selDay");
                                              // 新建一个DateSelector类的实例，将三个select对象传进去
                                              //new DateSelector(selYear, selMonth, selDay, 2017, 3, 29);
                                              // 也可以试试下边的代码
                                              var dt = new Date();

                                              new DateSelector(selYear, selMonth ,selDay,dt );
                                          </script>

                                          <!--<input type="text" name="nian" id="nian"  style="width:30px";>年-->
                                        <!--<input type="text" name="yue" id="yue"    style="width:30px";>月-->
                                        <!--<input type="text" name="ri"  id="ri"     style="width:30px";>日-->
                                        <!--<input type="text" name="shi" id="shi"    style="width:30px";>时-->
                                        <!--<input type="text" name="fen" id="fen"    style="width:30px";>分 -->
                                      </td>
                                  </tr>
                                </div>
                            </div>
                                   
                           <!--  <div class="form-group">
                                 <label class="col-sm-1 control-label">升级</label>
                                <div class="col-sm-3">
                                    <input type="text" name="loginname" id="loginname2" class="form-control">
                                </div>

                            </div> -->
              

                            <div class="form-group">
                                <label class="col-sm-1 control-label">汇款金额</label>
                                <div class="col-sm-3">
                                    <input type="text" name="jine" id="jine" class="form-control" />
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">汇款人</label>
                                <div class="col-sm-3">
                                    <input type="text" name="xingming" id="xingming" class="form-control" >
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">汇款银行</label>
                                <div class="col-sm-3">
                                    <input type="text" name="yinhang" id="yinhang" class="form-control" >
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">汇款账号</label>
                                <div class="col-sm-3">
                                    <input type="text" name="zhanghao" id="zhanghao" class="form-control" >
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">联系电话</label>
                                <div class="col-sm-3">
                                    <input type="text" name="tel" id="tel" class="form-control" >
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">款项说明</label>
                                <div class="col-sm-3">
                                    <input type="text" name="content" id="content" class="form-control">
                                </div>

                            </div>
              
              
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <input type="hidden" value="up1" name="act" />
                                    <button class="btn btn-primary" type="submit">提交审核</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        

    <script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/iCheck/icheck.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/jquery.validate.min.js"></script> 

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/messages_zh.min.js"></script> 

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/validate-methods.js"></script> 
<script type="text/javascript" src="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.min.js"></script> 


</body>

</html>


<script type="text/javascript" defer=true>
function validation(){
  
    // if(document.getElementById('loginname111').value==''){
    //     alert('请输入用户名');
    //     return false;
    // }
    // if(document.getElementById('nian').value==''){
    //     alert('请输入汇款时间');
    //     return false;
    // }
    // if(document.getElementById('yue').value==''){
    //     alert('请输入汇款时间');
    //     return false;
    // }
    // if(document.getElementById('ri').value==''){
    //     alert('请输入汇款时间');
    //     return false;
    // }
    // if(document.getElementById('shi').value==''){
    //     alert('请输入汇款时间');
    //     return false;
    // }
    // if(document.getElementById('fen').value==''){
    //     alert('请输入汇款时间');
    //     return false;
    // }
    // if(document.getElementById('loginname2').value==''){
    //     alert('请输入需要激活的用户名');
    //     return false;
    // }
    if(document.getElementById('jine').value==''){
        alert('请输入汇款金额');
        return false;
    }
    if(document.getElementById('xingming').value==''){
        alert('请输入汇款人姓名');
        return false;
    }
    if(document.getElementById('yinhang').value==''){
        alert('请输入汇款银行');
        return false;
    }

    if(document.getElementById('zhanghao').value==''){
        alert('请输入汇款账号');
        return false;
    }if(document.getElementById('tel').value==''){
        alert('请输入联系电话');
        return false;
    }

    if(document.getElementById('content').value==''){
        alert('请输入汇款用途');
        return false;
    }

}    
</script> 